#include <iosteam>

来源:百度知道 编辑:UC知道 时间:2024/07/07 08:21:28
#include<iostream>
using namespace std;

int main()
{
cout <<"Hello World!\n";
char response;
cin >>response;

return 0;
}
这个程序有什么问题吗?
为什么不能运行
是什么问题
-------------------Configuration: hello - Win32 Debug--------------------
Compiling...
hello.cpp
d:\安装程序\vc6.0_mini\microsoft visual studio\myprojects\hello\hello.cpp(1) : fatal error C1083: Cannot open include file: 'iostream': No such file or directory
Error executing cl.exe.

hello.exe - 1 error(s), 0 warning(s)
是不是编译器得问题,要把iostream改成什么才能运行

你缺少头文件,你装的是什么编译程序,你需要指定头文件,如果你创建的是win32控制台程序,你需要将头文件包含进去,如果你只有cpp文件的话,你也许可以把iostream。h文件打开,在你的安装文件夹内搜索就可以了,我没试过,自己想想办法吧

将#include<iostream>
using namespace std;
这两句改为
#include<iostream.h>

是iostream.h